<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:output method="xml" encoding="utf-8"/>

	<xsl:template match="@*|node()">
	        <xsl:copy>
	            <xsl:apply-templates select="@*|node()"/>
	        </xsl:copy>
	    </xsl:template>
	
	<xsl:template match="p[@class='meta']">
	        <xsl:apply-templates/>
	    </xsl:template>    

	<xsl:template match="span[@class='tag']">
	    <xsl:apply-templates/>
	</xsl:template>

<!-- 	<xsl:template match="del"/>

	<xsl:template match="ins">
	    <xsl:apply-templates/>
	</xsl:template>
 -->
	<xsl:template match="span[not(node())]"/>

	<xsl:template match="td[@style]">
	    <td>
	    	<xsl:for-each select="@*[name()!='style']">
	    	    <xsl:attribute name="{name()}">
	    	        <xsl:apply-templates/>
	    	    </xsl:attribute>
	    	</xsl:for-each>
	    	<xsl:apply-templates/>
	    </td>
	</xsl:template>

	<xsl:template match="b">
	    <span class="bold">
	    	<xsl:for-each select="@*[name()!='class']">
	    	    <xsl:attribute name="{name()}">
	    	        <xsl:apply-templates/>
	    	    </xsl:attribute>
	    	</xsl:for-each>
	    	<xsl:apply-templates/>
	    </span>
	</xsl:template>

</xsl:stylesheet>